package com.shishuo.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.shishuo.cms.entity.Authorization;

@Repository
public interface AuthorizationDao {

	public int addAuthorization(Authorization authorization);

	public List<Authorization> selectByPage(@Param("offset") long offset,
			@Param("rows") long rows,@Param("weixin")String weixin,@Param("name")String name);

	public Authorization getAuthorizationByID(long authorizationId);
	
	public Authorization selectByCondition(@Param("condition")String condition);

	public int updateAuthorization(Authorization authorization);

	public int deleteAuthorization(long authorizationId);

	public int selectCountByPage(@Param("weixin")String weixin,@Param("name")String name);

}
